<template>
    <div>
        <mHeader></mHeader>
        <div class="main-con">
            <div class="left_main">
                <leftMenu />
            </div>
            <div class="rightMain">
                <router-view></router-view>

            </div>
        </div>
    </div>
</template>
<script>
import leftMenu from './leftMenu';
export default {
    components: {
        leftMenu
    },
    data() {
        return {
            menuList: [[1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4]],
            bgUrl: 'https://imgs.699pic.com/images/501/325/516.jpg!list2x.v1',
            tabList: [
            ],
            curType: 1
        };
    },
    computed: {
        path() {
            return this.$route.path
        }
    },

    methods: {

        getTabtype(t, url) {
            this.curType = t
            if (this.path != url) this.$router.push(url)

        },
        onSubmit() {
            console.log('submit!', this.form);
        },
        goPage(url) {
            if (this.path != url) {
                this.$router.push(url)
            }
        }
    },
}
</script>
<style lang="scss" scoped>
.main-con {
    display: flex;

    .left_main {
        margin-right: 1.04rem;
    }
}

.rightMain {
    flex: 1;
    border-top: 0.05rem solid #E8E8E8;
width: 0;
    .top {
        padding: 1.1rem 1.04rem;
        height: 4.17rem;
        display: flex;
        align-items: center;
        background-color: #1068E7;
        width: 100%;

        strong {
            font-weight: bold;
            font-size: 1.50rem;
            color: #FFFFFF;
            line-height: 1.97rem;
            font-family: Microsoft YaHei;
        }

        span {
            font-family: Microsoft YaHei;
            font-weight: 400;
            font-size: 1.15rem;
            color: #FFFFFF;
            margin-left: 1.35rem;
        }
    }

    .r_main {
        width: 100%;

        .user {
            width: 100%;
            height: 200px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            padding: 0 30px;
            overflow: hidden;
            background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));

            .bgg {
                position: absolute;
                width: 100%;
                height: auto;
                z-index: -1;

            }

            .left {
                display: flex;
                color: #fff;
                align-items: center;

                .avatar {
                    width: 150px;
                    height: 150px;
                    margin-right: 27px;
                    flex-shrink: 0;
                    border-radius: 50%;
                    overflow: hidden;

                    img {
                        object-fit: cover;
                        width: 100%;
                        height: 100%;
                    }
                }

                .info {
                    .nane {
                        font-weight: bold;
                        font-size: 30px;
                        color: #FFFFFF;
                        margin-bottom: 13px;
                    }

                    .data {
                        display: flex;
                        align-items: center;
                        margin-bottom: 13px;

                        .line {
                            height: 18px;
                            display: block;
                            width: 2px;
                            background-color: #fff;
                            margin: 0 18px;
                        }

                        >div {
                            font-weight: 400;
                            font-size: 18px;
                            color: #999999;

                            >span {
                                color: #FFFFFF;
                            }
                        }
                    }

                    .address {
                        display: flex;
                        align-items: center;
                        margin-bottom: 10px;
                        font-weight: 400;
                        font-size: 16px;
                        color: #999999;

                        .line {
                            margin: 0 18px;
                            display: block;
                            height: 16px;
                            width: 2px;
                            background-color: #999;
                        }
                    }

                    .sign {
                        font-weight: 400;
                        font-size: 16px;
                        color: #FFFFFF;
                    }
                }
            }

            .right {
                height: 100%;
                padding: 28px 0 38px;
                font-weight: 400;
                display: flex;
                justify-content: space-between;
                align-items: flex-end;
                flex-direction: column;
                font-size: 20px;
                color: #FFFFFF;

                .share {
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    img {
                        width: 28px;
                        height: auto;
                        margin-left: 11px;
                    }
                }

                .btn {
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    button {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 120px;
                        height: 48px;
                        background: #F98951;
                        border-radius: 24px;
                        opacity: 0.9;
                        margin-left: 26px;
                        font-weight: 400;
                        font-size: 20px;
                        color: #FFFFFF;
                        border: none;

                        &:nth-child(2) {
                            background: #1068E7;
                        }
                    }
                }
            }
        }

        .tabIn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 23px 0;
            background-color: #fff;
            position: sticky;
            top: 99px;
            z-index: 99;

            .tab {
                display: flex;
                align-items: center;

                >div {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    margin-right: 55px;
                    cursor: pointer;
                    position: relative;

                    .actives {
                        font-weight: bold;
                        color: #1068E7;
                    }

                    .botLine {
                        width: 100%;
                        height: 3px;
                        box-sizing: content-box;
                        position: relative;
                        top: calc(100% + 13px);
                        position: absolute;
                        left: 0;
                        right: 0;

                        >span {
                            position: absolute;
                            left: 0;
                            top: 0;
                            display: inline-block;
                            width: 0;
                            height: 3px;
                            background-color: #1068E7;
                            border-radius: 3px;
                        }

                        .active {
                            animation: expandWidth .5s forwards;
                        }

                        @keyframes expandWidth {
                            0% {
                                width: 0;
                            }

                            100% {
                                width: 100%;
                            }
                        }
                    }
                }
            }

            .search {
                margin-left: 4.4rem;
                position: relative;
                width: 280px;
                height: 48px;
                display: flex;
                align-items: center;

                img {
                    width: 23px;
                    height: 23px;
                    position: absolute;
                    top: calc(50% - 11px);
                    right: 11px;
                }

                input {
                    width: 280px;
                    height: 48px;
                    outline: none;
                    background: #F6F6F6;
                    border-radius: 1.25rem;
                    padding: 0 3rem 0 1.2rem;
                    box-sizing: border-box;
                    font-size: 0.83rem;
                    border: none;
                    border: 1px solid #F6F6F6;

                    &:focus {
                        border: 1px solid #1068E7;
                    }
                }

                .pla {
                    font-weight: 400;
                    font-size: 0.83rem;
                    color: #666666;
                }
            }
        }

        .form_con {
            min-height: 500px;
            // overflow-y: auto;
        }
    }
}
@media screen and (max-width:768px) {
    .main-con {
        width: 100%;
        .left_main {
            display: none;
        }

        display: block;

        .rightMain {
            width: 100%;
        }
    }
}
</style>